(global.webpackJsonp = global.webpackJsonp || []).push([ [ "xg_o2o/allitem/allitem" ], {
    "4a75": function(e, t, n) {},
    "5e50": function(e, t, n) {
        "use strict";
        n.r(t);
        var a = n("f88c"), r = n.n(a);
        for (var c in a) "default" !== c && function(e) {
            n.d(t, e, function() {
                return a[e];
            });
        }(c);
        t.default = r.a;
    },
    "74ce": function(e, t, n) {
        "use strict";
        (function(e) {
            function t(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            n("4e1e"), t(n("66fd")), e(t(n("949a")).default);
        }).call(this, n("543d").createPage);
    },
    "949a": function(e, t, n) {
        "use strict";
        n.r(t);
        var a = n("98ca"), r = n("5e50");
        for (var c in r) "default" !== c && function(e) {
            n.d(t, e, function() {
                return r[e];
            });
        }(c);
        n("ae80");
        var i = n("f0c5"), u = Object(i.a)(r.default, a.b, a.c, !1, null, null, null, !1, a.a, void 0);
        t.default = u.exports;
    },
    "98ca": function(e, t, n) {
        "use strict";
        n.d(t, "b", function() {
            return r;
        }), n.d(t, "c", function() {
            return c;
        }), n.d(t, "a", function() {
            return a;
        });
        var a = {
            gracePage: function() {
                return n.e("graceUI/components/gracePage").then(n.bind(null, "1915"));
            },
            graceFullLoading: function() {
                return n.e("graceUI/components/graceFullLoading").then(n.bind(null, "7669"));
            },
            graceSearch: function() {
                return n.e("graceUI/components/graceSearch").then(n.bind(null, "d720"));
            },
            xmgTabBar: function() {
                return n.e("components/xmgTabBar/xmgTabBar").then(n.bind(null, "cfe5"));
            }
        }, r = function() {
            var e = this, t = (e.$createElement, e._self._c, Object.keys(e.tabBar));
            e.$mp.data = Object.assign({}, {
                $root: {
                    g0: t
                }
            });
        }, c = [];
    },
    ae80: function(e, t, n) {
        "use strict";
        var a = n("4a75");
        n.n(a).a;
    },
    f88c: function(e, t, n) {
        "use strict";
        (function(e) {
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0;
            var n = {
                data: function() {
                    return {
                        mainHeight: 500,
                        currentCateIndex: 1,
                        mainCate: [],
                        childCate: [],
                        itemList: [],
                        scrollTimer: null,
                        bgColor: "",
                        textColor: "",
                        attach: "",
                        showBack: !1,
                        defaultKeys: "",
                        tabBar: {},
                        currentCur: 0,
                        graceFullLoading: !0
                    };
                },
                onLoad: function() {
                    var t = this, n = getCurrentPages();
                    this.showBack = n.length > 1, e.createSelectorQuery().select("#gBody").fields({
                        size: !0
                    }, function(n) {
                        e.createSelectorQuery().select("#hSearch").fields({
                            size: !0
                        }, function(a) {
                            t.mainHeight = n.height - a.height - e.upx2px(100);
                        }).exec();
                    }).exec(), this.getMenu();
                },
                methods: {
                    toItemUrl: function(t) {
                        var n = t.currentTarget.dataset.itemid;
                        e.navigateTo({
                            url: "../item/item?itemid=" + n
                        });
                    },
                    getMenu: function() {
                        var t = this, n = this.$xSign.sign("v4index_more");
                        this.$xRequest.request({
                            url: "entry/wxapp/v4index_more",
                            data: {
                                xgsign: n,
                                op: "getmenu"
                            },
                            success: function(e) {
                                var n = JSON.parse(t.$Decrypt(e.data.data));
                                t.tabBar = n.base.tabbar, t.bgColor = n.base.bgColor, t.textColor = n.base.textColor, 
                                t.attach = n.base.attach, t.currentCateIndex = n.current, t.mainCate = n.categoryParent, 
                                t.childCate = n.categoryChild, t.itemList = n.itemList, t.currentCur = n.currentCur, 
                                t.graceFullLoading = !1;
                            },
                            fail: function(n) {
                                e.showModal({
                                    title: "提示",
                                    content: n.data.message,
                                    showCancel: !1,
                                    success: function(n) {
                                        n.confirm && (t.showBack ? e.navigateBack({
                                            delta: 1
                                        }) : e.reLaunch({
                                            url: "../index/index"
                                        }));
                                    }
                                });
                            }
                        });
                    },
                    changCate: function(e) {
                        var t = e.currentTarget.dataset.pindex;
                        this.currentCateIndex = t;
                    },
                    toSearch: function(t) {
                        this.defaultKeys = t, this.defaultKeys ? e.navigateTo({
                            url: "../search/search?e=" + this.defaultKeys
                        }) : e.showToast({
                            icon: "none",
                            title: "请输入搜索内容"
                        });
                    }
                }
            };
            t.default = n;
        }).call(this, n("543d").default);
    }
}, [ [ "74ce", "common/runtime", "common/vendor" ] ] ]);